package com.yisen.dasan.service;

import com.alibaba.fastjson.JSONObject;
import com.yisen.dasan.entity.SendAnswer;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @author: yu258234
 * @Description: 答案表相关
 */
public interface AnswerService {
    /**
     * 填写问卷答案
     * @param jsonObject
     * @return
     */
    boolean addAnswer(JSONObject jsonObject);

    /**
     * 查询答案
     * @param formId
     * @param pageNum
     * @return
     */
    JSONObject getAnswer(int formId,int pageNum);

    /**
     * 查询所有答案
     * @param formId
     * @param response
     * @return
     */
    void getAllAnswer(int formId, HttpServletResponse response) throws IOException;
}
